<?php
	#Include the connect.php file
	include('connect.php');
	#Connect to the database
	//connection String
	$mysqli = new mysqli($hostname,$username,$password,$database);

	if ($result = $mysqli->query("SELECT * FROM wp_zzgraph")) {
    
	
	while($row = $result->fetch_assoc())
	{
		$orders[] = array(
			$row['CreateDateTime'],
			$row['CreateDateTime']
		  );
	}
	
	//var_dump($orders);
	echo json_encode($orders);
	
    /* free result set */
    $result->close();
	}
?>